package com.yupi.yuaiagent.demo.tool;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

public class WeatherTools {

    @Tool(description = "Get the current weather condiitions of a specified city")
    public String getWeather(String city) {
        //假设这里有调用天气的api，然后返回以下的内容
        return "厦门今天（7月4日）的天气是晴，最低温度27℃";

    }
}
